package com.ruoyi.dynamic.model.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.pojo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;


@Getter
@Setter
@Accessors(chain = true)
@TableName("youban_room_vote_music_resource")
@ApiModel(value = "RoomVoteMusicResource对象", description = "房间歌曲投票")
public class RoomVoteMusicResource extends BaseEntity<RoomVoteMusicResource> {
    @ApiModelProperty("房间id")
    private Long roomId;

    @ApiModelProperty("礼物id")
    private Long giftId;

    @ApiModelProperty("礼物图标")
    private String giftImg;

    @ApiModelProperty("投票时长")
    private Integer voteTime;

    @ApiModelProperty("礼物数量")
    private Integer giftNum;

    @ApiModelProperty("投票id")
    private Long voteMusicId;

    @ApiModelProperty("歌曲名称")
    private String name;

    @ApiModelProperty("投票人数")
    private Integer voteNum;

    @ApiModelProperty("0正式1模板")
    private Integer type;

    @ApiModelProperty("所占比例")
    @TableField(exist = false)
    private String ratio;

    @ApiModelProperty("我是否投过票")
    @TableField(exist = false)
    private boolean isVote;

}
